package net.zjitc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {
    @RequestMapping("/save")
    @ResponseBody
    public String save() {
        System.out.println("save user");
        return "success";
    }
    @RequestMapping("/delete")
    @ResponseBody
    public String delete() {
        System.out.println("delete user");
        return "success";
    }
    @RequestMapping("/update")
    @ResponseBody
    public String update() {
        System.out.println("update user");
        return "success";
    }
    @RequestMapping("/select")
    @ResponseBody
    public String select() {
        System.out.println("select user");
        return "success";
    }
}
